package io.github.neo.hhcache.command.common;

import io.github.neo.hhcache.core.Command;
import io.github.neo.hhcache.core.Commands;
import io.github.neo.hhcache.core.HHCache;
import io.github.neo.hhcache.entry.Reply;

/**
 * @author: hhz
 * @create: 2024/7/10
 **/
public class CommandCommand implements Command {
    @Override
    public String name() {
        return "COMMAND";
    }

    @Override
    public Reply<?> exec(HHCache cache, String[] args) {
        return Reply.array(Commands.getCommandNames());
    }
}
